package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_unionwar_activity_patrons_fight_log", desc = "群英争霸_门客战斗日志", autoSave = true, uploadCk = true, isCross = true)
public class LogUnionWarActivityPatronsFight extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "商会id")
    private String unionUId;

    @FieldTypeAnnotation(desc = "阶段")
    private int phase;

    @FieldTypeAnnotation(desc = "场次")
    private int session;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "门客id")
    private int patronsId;

    @FieldTypeAnnotation(desc = "出战顺序")
    private int warSequece;

    @FieldTypeAnnotation(desc = "赚钱")
    private long earns;

    @FieldTypeAnnotation(desc = "当前血量")
    private long blood;

    @FieldTypeAnnotation(desc = "是否胜利")
    private boolean win;

    @FieldTypeAnnotation(desc = "胜利次数")
    private int winTimes;

    @FieldTypeAnnotation(desc = "对手商会id")
    private String enemyUnionUId;

    @FieldTypeAnnotation(desc = "对手用户id")
    private long enemyUserId;

    @FieldTypeAnnotation(desc = "对手门客id")
    private int enemyPatronsId;

    @FieldTypeAnnotation(desc = "对手血量")
    private long enemyBlood;

    @FieldTypeAnnotation(desc = "对手赚钱")
    private long enemyEarns;

    public LogUnionWarActivityPatronsFight(int activityId, String unionUId, int phase, int session, long userId, int patronsId, int warSequece, long blood, long earns, boolean win, int winTimes, String enemyUnionUId, long enemyUserId, int enemyPatronsId, long enemyBlood, long enemyEarns) {
        this.activityId = activityId;
        this.unionUId = unionUId;
        this.phase = phase;
        this.session = session;
        this.userId = userId;
        this.patronsId = patronsId;
        this.warSequece = warSequece;
        this.blood = blood;
        this.earns = earns;
        this.win = win;
        this.winTimes = winTimes;
        this.enemyUnionUId = enemyUnionUId;
        this.enemyUserId = enemyUserId;
        this.enemyPatronsId = enemyPatronsId;
        this.enemyBlood = enemyBlood;
        this.enemyEarns = enemyEarns;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
